package com.example.demo2;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@RestController
@MapperScan(value = "com.example.demo2.dao")
@EnableSwagger2
public class Demo2Application {

    @GetMapping("/getInfo")
    public String greeting() {
        return "abcdefd";
    }

    public static void main(String[] args) {
        SpringApplication.run(Demo2Application.class, args);
        System.out.println("程序已运行！");
    }

}
